package com.wpf.bean;

import java.util.ArrayList;

public class Pagebean {
	private int dbAllRow,pageSize,pageCount,pageNow;
	private ArrayList<Userbean> rowSet;
	private String queryResult;
		public Pagebean() {
		dbAllRow = 0;//查询返回的总记录数
		pageSize = 1;//每页显示的记录数
		pageCount = 0;//分页后总页数
		pageNow = 1;//当前页
		rowSet = null;//创建行集对象 存储全部记录
		queryResult = "";//输出
	}
	public int getDbAllRow() {
		return dbAllRow;
	}
	public void setDbAllRow(int dbAllRow) {
		this.dbAllRow = dbAllRow;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}
	public int getPageNow() {
		return pageNow;
	}
	public void setPageNow(int pageNow) {
		if(pageNow>=1||pageNow<=this.pageCount) {
			this.pageNow = pageNow;
		}
	}
	public ArrayList<Userbean> getRowSet() {
		return rowSet;
	}
	public void setRowSet(ArrayList<Userbean> rowSet) {
		this.rowSet = rowSet;
	}
	public String getQueryResult() {
		return queryResult;
	}

	public void setQueryResult(String queryResult) {
		this.queryResult = queryResult;
	}
}
